package com.seven.service;

import java.util.List;

import com.seven.dao.AProblemDao;
import com.seven.entity.Problem;

//问题业务类
public class AProblemService {
	AProblemDao problemDao = new AProblemDao();
	
	/**
	 * 问题的增加
	 */
	public int addProblem(Problem problem) {
		return problemDao.addProblem(problem);
		
	}
	
	/**
	 * 问题删除
	 */
	public int deleteProblem(Problem problem) {
		return problemDao.deleteProblem(problem);
		
	}
	
	/**
	 * 问题的修改
	 */
	public int updatePromblem(Problem problem) {
		return problemDao.updatePromblem(problem);
		
	}
	
	/**
	 * 问题的修改1
	 */
	public int updatePromblem1(Problem problem) {
		return problemDao.updatePromblem1(problem);
		
	}
	
	/**
	 * 问题的查询(查询所有)
	 */
	public List<Problem> selectAllProblem() {
		return problemDao.selectAllProblem();
		
	}
	
	/**
	 * 问题的查询(通过id)
	 */
	public List<Problem> selectByProblem_id(Problem problem) {
		return problemDao.selectByProblem_id(problem);
		
	}
	
	/**
	 * 问题查询(通过用户id)
	 */
	public List<Problem> selectByUsers_id(Problem problem) {
		return problemDao.selectByUsers_id(problem);
		
	}
	
	/**
	 * 问题查询(通过员工id)
	 */
	public List<Problem> selectByWorker_id(Problem problem) {
		return problemDao.selectByWorker_id(problem);
		
	}
	
	/**
	 * 问题查询(未审核)
	 */
	public List<Problem> selectByproblem_isauditor0() {
		return problemDao.selectByproblem_isauditor0();
		
	}
	
	/**
	 * 问题查询(已审核)
	 */
	public List<Problem> selectByproblem_isauditor1() {
		return problemDao.selectByproblem_isauditor1();
		
	}
	
	/**
	 * 问题查询(已审核,未处理)
	 */
	public List<Problem> selectByproblem_ispass_1() {
		return problemDao.selectByproblem_ispass_1();
		
	}
	
	/**
	 * 问题查询(已审核,处理中)
	 */
	public List<Problem> selectByproblem_ispass0() {
		return problemDao.selectByproblem_ispass0();
		
	}
	
	/**
	 * 问题查询(已审核,已处理)
	 */
	public List<Problem> selectByproblem_ispass1() {
		return problemDao.selectByproblem_ispass1();
		
	}
}
